import request from '@/utils/request'

export async function addColor(data) {
  return await request({
    url: 'color/add',
    method: 'post',
    data
  })
}

export async function getColorList(data) {
  return await request({
    url: 'color/list',
    method: 'post',
    data
  })
}

export async function colorSoftDelete(data) {
  return await request({
    url: 'color/softDelete',
    method: 'post',
    data
  })
}

export async function updateColor(data) {
  return await request({
    url: 'color/updateColor',
    method: 'post',
    data
  })
}

export async function removeColor(data) {
  return await request({
    url: 'color/remove',
    method: 'post',
    data
  })
}
